// ==UserScript==
// @name         96编辑器VIP破解
// @namespace    https://gitee.com/fyhn/tampermonkey/
// @version      1.3
// @description  96编辑器VIP破解,样式，模板，一键排版，不需要vip直接点击就行
// @author       fyhn
// @match        http://bj.96weixin.com/*
// @match        https://bj.96weixin.com/*
// @grant        none
// ==/UserScript==

(function() {
    var eul = document.getElementsByTagName("li");
    for(var j = 0;j<eul.length;j++){
        var eu = eul[j];
        eu.setAttribute("data-vip","1")
    };
    var ediv = document.getElementsByTagName("i");
    for(var k = 0;k<ediv.length;k++){
        var ed = ediv[k];
        ed.setAttribute("data-vip","1")
    };
    var earr = document.getElementsByTagName("div");
    for(var i = 0;i<earr.length;i++){
        var ea = earr[i];
        if (ea.className=="content-style" || ea.className=="content-tpl" || ea.className=="content-styleFestival" || ea.className=="content-format-btn_list" || ea.className=="list-style"){
            ea.onclick=function(){
                console.log(i);
                var eli = document.getElementsByTagName("li");
                for(var j = 0;j<eul.length;j++){
                    var ej = eli[j];
                    ej.setAttribute("data-vip","1")
                };
                var ei = document.getElementsByTagName("i");
                for(var k = 0;k<ei.length;k++){
                    var ek = ei[k];
                    ek.setAttribute("data-vip","1")
                };
                var ediv = document.getElementsByTagName("div");
                for(var l = 0;l<ediv.length;l++){
                    var el = ediv[l];
                    el.setAttribute("data-vip","1")
                };
            };
        };
    };
    document.getElementsByClassName("content-tab")[0].getElementsByTagName("ol")[0].remove();
    document.getElementsByClassName("layui-layer-page")[0].remove();
})();